/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package evolucaodeparcela;

import java.text.DecimalFormat;

/**
 *
 * @author Construtora
 */
public class EvolucaoParcela {

    private double aIndices[] = {1.15,0.92,0.31};
    private double nValor = 1116.66;
   


    public double calculaValor() {

        for(int i =0; i<aIndices.length;i++){

           nValor += (nValor *= (aIndices[i]/100));

        }
        
        return nValor;

    }

    public void resultado(){

        DecimalFormat dec = new DecimalFormat("0.00");

        System.out.println("R$ "+dec.format(calculaValor()));
    }

  
}
